﻿namespace WinForms.ControlList.Guest
{
    using Bll.Guest;
    using Bll.Systems;
    using Model.Guest;
    using Model.Systems;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;
    using WinForms.Properties;

    public class FrmGuestVeiw : Form
    {
        private Button btn_Close;
        private Button btn_Save;
        private IContainer components;
        public const int HTCAPTION = 2;
        private Label lbl_Addresses;
        private Label lbl_AddressesValue;
        private Label lbl_BiTian;
        private Label lbl_ClearingType;
        private Label lbl_ClearingTypeValue;
        private Label lbl_ConsumeNum;
        private Label lbl_ConsumeNumValue;
        private Label lbl_CumulativeMoney;
        private Label lbl_CumulativeMoneyValue;
        private Label lbl_GuestName;
        private Label lbl_GuestNameValue;
        private Label lbl_GuestTypeId;
        private Label lbl_GuestTypeIdValue;
        private Label lbl_GuestTypes;
        private Label lbl_GuestTypesValue;
        private Label lbl_OutstMoney;
        private Label lbl_OutstMoneyValue;
        private Label lbl_PaidMoney;
        private Label lbl_PaidMoneyValue;
        private Label lbl_PayType;
        private Label lbl_PayTypeValue;
        private Label lbl_Remark;
        private Label lbl_RemarkValue;
        private Label lbl_Tel;
        private Label lbl_TelValue;
        private Label lbl_XuanTian;
        private Label lblTitle;
        private Panel pan_AllPanel;
        private Panel pan_AllPlanes;
        private Panel pan_Bottoms;
        private Panel pan_Dock;
        private Panel pan_DockBottom;
        private Panel pan_DockLeft;
        private Panel pan_DockRight;
        private Panel pan_Lefts;
        private Panel pan_Rights;
        private Panel pan_Table2;
        private Panel pan_Table3;
        private Panel pan_Table4;
        private Panel pan_Table6;
        private Panel pan_Table7;
        private Panel pan_td0;
        private Panel pan_td1;
        private Panel pan_td10;
        private Panel pan_td11;
        private Panel pan_td16;
        private Panel pan_td17;
        private Panel pan_td18;
        private Panel pan_td19;
        private Panel pan_td2;
        private Panel pan_td20;
        private Panel pan_td21;
        private Panel pan_td22;
        private Panel pan_td23;
        private Panel pan_td3;
        private Panel pan_td4;
        private Panel pan_td5;
        private Panel pan_td6;
        private Panel pan_td7;
        private Panel pan_td8;
        private Panel pan_td9;
        private Panel pan_Top;
        private Panel pan_TopLeft;
        private Panel pan_TopRight;
        private Panel pan_ZhongJian;
        private Panel pane_TopT;
        private Panel panel_BiTian;
        private Panel panel_Button;
        private Panel panel_JianGe;
        private Panel panel_JianGe1;
        private Panel panel_XuanTian;
        private Panel panel1;
        private Panel panel10;
        private Panel panel11;
        private Panel panel4;
        private Panel panel5;
        private Panel panel6;
        private Panel panel9;
        public const int SC_MOVE = 0xf010;
        public const int WM_SYSCOMMAND = 0x112;

        public FrmGuestVeiw()
        {
            this.components = null;
        }

        public FrmGuestVeiw(int id)
        {
            this.components = null;
            this.InitializeComponent();
            base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            base.SetStyle(ControlStyles.UserPaint, true);
            base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            this.DataLoad(id);
        }

        private void btn_Close_Click(object sender, EventArgs e)
        {
            base.DialogResult = DialogResult.Cancel;
            base.Close();
        }

        private void DataLoad(int id)
        {
            GuestEnt model = GuestBll.GetModel(id);
            if (model.GuestTypes.ToString() == "1")
            {
                this.lbl_GuestTypesValue.Text = "个人";
            }
            else
            {
                this.lbl_GuestTypesValue.Text = "公司";
            }
            GuestGradeEnt ent2 = GuestGradeBll.GetModel(model.GuestTypeId);
            if (ent2 != null)
            {
                this.lbl_GuestTypeIdValue.Text = ent2.GuestName + "  " + (((ent2.Discount * 100M) / 10M)).ToString("F1") + "折";
            }
            this.lbl_TelValue.Text = model.Tel.ToString();
            this.lbl_GuestNameValue.Text = model.GuestName.ToString();
            this.lbl_AddressesValue.Text = model.Addresses.ToString();
            ParameterEnt ent3 = ParameterBll.GetModel(model.PayType);
            if (ent3 != null)
            {
                this.lbl_PayTypeValue.Text = ent3.ParName;
            }
            this.lbl_RemarkValue.Text = model.Remark.ToString();
            ent3 = ParameterBll.GetModel(model.ClearingType);
            if (ent3 != null)
            {
                this.lbl_ClearingTypeValue.Text = ent3.ParName;
            }
            this.lbl_PaidMoneyValue.Text = model.PaidMoney.ToString("F2");
            this.lbl_CumulativeMoneyValue.Text = model.CumulativeMoney.ToString("F2");
            this.lbl_ConsumeNumValue.Text = model.ConsumeNum.ToString();
            this.lbl_OutstMoneyValue.Text = model.OutstMoney.ToString("F2");
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.pan_DockLeft = new Panel();
            this.pan_Dock = new Panel();
            this.pan_AllPanel = new Panel();
            this.pan_AllPlanes = new Panel();
            this.panel_JianGe1 = new Panel();
            this.panel6 = new Panel();
            this.panel10 = new Panel();
            this.lbl_RemarkValue = new Label();
            this.panel11 = new Panel();
            this.lbl_Remark = new Label();
            this.panel1 = new Panel();
            this.panel4 = new Panel();
            this.lbl_AddressesValue = new Label();
            this.panel5 = new Panel();
            this.lbl_Addresses = new Label();
            this.pan_Table7 = new Panel();
            this.pan_td23 = new Panel();
            this.lbl_ConsumeNumValue = new Label();
            this.pan_td22 = new Panel();
            this.lbl_ConsumeNum = new Label();
            this.pan_td21 = new Panel();
            this.lbl_OutstMoneyValue = new Label();
            this.pan_td20 = new Panel();
            this.lbl_OutstMoney = new Label();
            this.pan_Table6 = new Panel();
            this.pan_td19 = new Panel();
            this.lbl_PaidMoneyValue = new Label();
            this.pan_td18 = new Panel();
            this.lbl_PaidMoney = new Label();
            this.pan_td17 = new Panel();
            this.lbl_CumulativeMoneyValue = new Label();
            this.pan_td16 = new Panel();
            this.lbl_CumulativeMoney = new Label();
            this.pan_Table4 = new Panel();
            this.pan_td11 = new Panel();
            this.lbl_ClearingTypeValue = new Label();
            this.pan_td10 = new Panel();
            this.lbl_ClearingType = new Label();
            this.pan_td9 = new Panel();
            this.lbl_PayTypeValue = new Label();
            this.pan_td8 = new Panel();
            this.lbl_PayType = new Label();
            this.panel_XuanTian = new Panel();
            this.lbl_XuanTian = new Label();
            this.panel_JianGe = new Panel();
            this.pan_Table3 = new Panel();
            this.pan_td7 = new Panel();
            this.lbl_TelValue = new Label();
            this.pan_td6 = new Panel();
            this.lbl_Tel = new Label();
            this.pan_td5 = new Panel();
            this.lbl_GuestNameValue = new Label();
            this.pan_td4 = new Panel();
            this.lbl_GuestName = new Label();
            this.pan_Table2 = new Panel();
            this.pan_td3 = new Panel();
            this.lbl_GuestTypeIdValue = new Label();
            this.pan_td2 = new Panel();
            this.lbl_GuestTypeId = new Label();
            this.pan_td1 = new Panel();
            this.lbl_GuestTypesValue = new Label();
            this.pan_td0 = new Panel();
            this.lbl_GuestTypes = new Label();
            this.panel_BiTian = new Panel();
            this.lbl_BiTian = new Label();
            this.panel_Button = new Panel();
            this.btn_Close = new Button();
            this.panel9 = new Panel();
            this.pan_Rights = new Panel();
            this.pan_Lefts = new Panel();
            this.pan_Bottoms = new Panel();
            this.pane_TopT = new Panel();
            this.pan_DockBottom = new Panel();
            this.pan_DockRight = new Panel();
            this.pan_Top = new Panel();
            this.pan_ZhongJian = new Panel();
            this.lblTitle = new Label();
            this.pan_TopRight = new Panel();
            this.pan_TopLeft = new Panel();
            this.btn_Save = new Button();
            this.pan_Dock.SuspendLayout();
            this.pan_AllPanel.SuspendLayout();
            this.pan_AllPlanes.SuspendLayout();
            this.panel6.SuspendLayout();
            this.panel10.SuspendLayout();
            this.panel11.SuspendLayout();
            this.panel1.SuspendLayout();
            this.panel4.SuspendLayout();
            this.panel5.SuspendLayout();
            this.pan_Table7.SuspendLayout();
            this.pan_td23.SuspendLayout();
            this.pan_td22.SuspendLayout();
            this.pan_td21.SuspendLayout();
            this.pan_td20.SuspendLayout();
            this.pan_Table6.SuspendLayout();
            this.pan_td19.SuspendLayout();
            this.pan_td18.SuspendLayout();
            this.pan_td17.SuspendLayout();
            this.pan_td16.SuspendLayout();
            this.pan_Table4.SuspendLayout();
            this.pan_td11.SuspendLayout();
            this.pan_td10.SuspendLayout();
            this.pan_td9.SuspendLayout();
            this.pan_td8.SuspendLayout();
            this.panel_XuanTian.SuspendLayout();
            this.pan_Table3.SuspendLayout();
            this.pan_td7.SuspendLayout();
            this.pan_td6.SuspendLayout();
            this.pan_td5.SuspendLayout();
            this.pan_td4.SuspendLayout();
            this.pan_Table2.SuspendLayout();
            this.pan_td3.SuspendLayout();
            this.pan_td2.SuspendLayout();
            this.pan_td1.SuspendLayout();
            this.pan_td0.SuspendLayout();
            this.panel_BiTian.SuspendLayout();
            this.panel_Button.SuspendLayout();
            this.pan_Top.SuspendLayout();
            this.pan_ZhongJian.SuspendLayout();
            base.SuspendLayout();
            this.pan_DockLeft.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockLeft.Dock = DockStyle.Left;
            this.pan_DockLeft.Location = new Point(0, 0);
            this.pan_DockLeft.Name = "pan_DockLeft";
            this.pan_DockLeft.Size = new Size(1, 0x145);
            this.pan_DockLeft.TabIndex = 0;
            this.pan_Dock.BackColor = Color.FromArgb(0, 0, 15, 0xff);
            this.pan_Dock.Controls.Add(this.pan_AllPanel);
            this.pan_Dock.Controls.Add(this.pan_DockBottom);
            this.pan_Dock.Controls.Add(this.pan_DockRight);
            this.pan_Dock.Controls.Add(this.pan_DockLeft);
            this.pan_Dock.Dock = DockStyle.Fill;
            this.pan_Dock.Location = new Point(0, 0x20);
            this.pan_Dock.Name = "pan_Dock";
            this.pan_Dock.Size = new Size(0x336, 0x145);
            this.pan_Dock.TabIndex = 5;
            this.pan_AllPanel.BackColor = Color.White;
            this.pan_AllPanel.Controls.Add(this.pan_AllPlanes);
            this.pan_AllPanel.Controls.Add(this.pan_Rights);
            this.pan_AllPanel.Controls.Add(this.pan_Lefts);
            this.pan_AllPanel.Controls.Add(this.pan_Bottoms);
            this.pan_AllPanel.Controls.Add(this.pane_TopT);
            this.pan_AllPanel.Dock = DockStyle.Fill;
            this.pan_AllPanel.Location = new Point(1, 0);
            this.pan_AllPanel.Name = "pan_AllPanel";
            this.pan_AllPanel.Size = new Size(820, 0x144);
            this.pan_AllPanel.TabIndex = 3;
            this.pan_AllPlanes.Controls.Add(this.panel_JianGe1);
            this.pan_AllPlanes.Controls.Add(this.panel6);
            this.pan_AllPlanes.Controls.Add(this.panel1);
            this.pan_AllPlanes.Controls.Add(this.pan_Table7);
            this.pan_AllPlanes.Controls.Add(this.pan_Table6);
            this.pan_AllPlanes.Controls.Add(this.pan_Table4);
            this.pan_AllPlanes.Controls.Add(this.panel_XuanTian);
            this.pan_AllPlanes.Controls.Add(this.panel_JianGe);
            this.pan_AllPlanes.Controls.Add(this.pan_Table3);
            this.pan_AllPlanes.Controls.Add(this.pan_Table2);
            this.pan_AllPlanes.Controls.Add(this.panel_BiTian);
            this.pan_AllPlanes.Controls.Add(this.panel_Button);
            this.pan_AllPlanes.Controls.Add(this.panel9);
            this.pan_AllPlanes.Dock = DockStyle.Fill;
            this.pan_AllPlanes.Location = new Point(10, 10);
            this.pan_AllPlanes.Name = "pan_AllPlanes";
            this.pan_AllPlanes.Size = new Size(800, 0x130);
            this.pan_AllPlanes.TabIndex = 4;
            this.panel_JianGe1.Dock = DockStyle.Top;
            this.panel_JianGe1.Location = new Point(0, 0xeb);
            this.panel_JianGe1.Name = "panel_JianGe1";
            this.panel_JianGe1.Size = new Size(800, 10);
            this.panel_JianGe1.TabIndex = 14;
            this.panel6.Controls.Add(this.panel10);
            this.panel6.Controls.Add(this.panel11);
            this.panel6.Dock = DockStyle.Top;
            this.panel6.Location = new Point(0, 210);
            this.panel6.Name = "panel6";
            this.panel6.Size = new Size(800, 0x19);
            this.panel6.TabIndex = 13;
            this.panel10.Controls.Add(this.lbl_RemarkValue);
            this.panel10.Dock = DockStyle.Fill;
            this.panel10.Location = new Point(150, 0);
            this.panel10.Name = "panel10";
            this.panel10.Size = new Size(650, 0x19);
            this.panel10.TabIndex = 2;
            this.panel10.Paint += new PaintEventHandler(this.panel10_Paint);
            this.lbl_RemarkValue.AutoSize = true;
            this.lbl_RemarkValue.Location = new Point(5, 6);
            this.lbl_RemarkValue.Name = "lbl_RemarkValue";
            this.lbl_RemarkValue.Size = new Size(0, 12);
            this.lbl_RemarkValue.TabIndex = 0;
            this.panel11.Controls.Add(this.lbl_Remark);
            this.panel11.Dock = DockStyle.Left;
            this.panel11.Location = new Point(0, 0);
            this.panel11.Name = "panel11";
            this.panel11.Size = new Size(150, 0x19);
            this.panel11.TabIndex = 3;
            this.panel11.Paint += new PaintEventHandler(this.panel11_Paint);
            this.lbl_Remark.Location = new Point(60, 6);
            this.lbl_Remark.Name = "lbl_Remark";
            this.lbl_Remark.Size = new Size(0x54, 12);
            this.lbl_Remark.TabIndex = 0;
            this.lbl_Remark.Text = "备注:";
            this.lbl_Remark.TextAlign = ContentAlignment.MiddleRight;
            this.panel1.Controls.Add(this.panel4);
            this.panel1.Controls.Add(this.panel5);
            this.panel1.Dock = DockStyle.Top;
            this.panel1.Location = new Point(0, 0xb9);
            this.panel1.Name = "panel1";
            this.panel1.Size = new Size(800, 0x19);
            this.panel1.TabIndex = 11;
            this.panel4.Controls.Add(this.lbl_AddressesValue);
            this.panel4.Dock = DockStyle.Fill;
            this.panel4.Location = new Point(150, 0);
            this.panel4.Name = "panel4";
            this.panel4.Size = new Size(650, 0x19);
            this.panel4.TabIndex = 2;
            this.panel4.Paint += new PaintEventHandler(this.panel4_Paint);
            this.lbl_AddressesValue.AutoSize = true;
            this.lbl_AddressesValue.Location = new Point(5, 7);
            this.lbl_AddressesValue.Name = "lbl_AddressesValue";
            this.lbl_AddressesValue.Size = new Size(0, 12);
            this.lbl_AddressesValue.TabIndex = 0;
            this.panel5.Controls.Add(this.lbl_Addresses);
            this.panel5.Dock = DockStyle.Left;
            this.panel5.Location = new Point(0, 0);
            this.panel5.Name = "panel5";
            this.panel5.Size = new Size(150, 0x19);
            this.panel5.TabIndex = 3;
            this.panel5.Paint += new PaintEventHandler(this.panel5_Paint);
            this.lbl_Addresses.Location = new Point(60, 6);
            this.lbl_Addresses.Name = "lbl_Addresses";
            this.lbl_Addresses.Size = new Size(0x54, 12);
            this.lbl_Addresses.TabIndex = 0;
            this.lbl_Addresses.Text = "地址:";
            this.lbl_Addresses.TextAlign = ContentAlignment.MiddleRight;
            this.pan_Table7.Controls.Add(this.pan_td23);
            this.pan_Table7.Controls.Add(this.pan_td22);
            this.pan_Table7.Controls.Add(this.pan_td21);
            this.pan_Table7.Controls.Add(this.pan_td20);
            this.pan_Table7.Dock = DockStyle.Top;
            this.pan_Table7.Location = new Point(0, 160);
            this.pan_Table7.Name = "pan_Table7";
            this.pan_Table7.Size = new Size(800, 0x19);
            this.pan_Table7.TabIndex = 1;
            this.pan_td23.Controls.Add(this.lbl_ConsumeNumValue);
            this.pan_td23.Dock = DockStyle.Left;
            this.pan_td23.Location = new Point(550, 0);
            this.pan_td23.Name = "pan_td23";
            this.pan_td23.Size = new Size(250, 0x19);
            this.pan_td23.TabIndex = 0;
            this.pan_td23.Paint += new PaintEventHandler(this.pan_td23_Paint);
            this.lbl_ConsumeNumValue.AutoSize = true;
            this.lbl_ConsumeNumValue.Location = new Point(5, 5);
            this.lbl_ConsumeNumValue.Name = "lbl_ConsumeNumValue";
            this.lbl_ConsumeNumValue.Size = new Size(0, 12);
            this.lbl_ConsumeNumValue.TabIndex = 0;
            this.pan_td22.Controls.Add(this.lbl_ConsumeNum);
            this.pan_td22.Dock = DockStyle.Left;
            this.pan_td22.Location = new Point(400, 0);
            this.pan_td22.Name = "pan_td22";
            this.pan_td22.Size = new Size(150, 0x19);
            this.pan_td22.TabIndex = 1;
            this.pan_td22.Paint += new PaintEventHandler(this.pan_td22_Paint);
            this.lbl_ConsumeNum.Location = new Point(0x3e, 5);
            this.lbl_ConsumeNum.Name = "lbl_ConsumeNum";
            this.lbl_ConsumeNum.Size = new Size(0x54, 12);
            this.lbl_ConsumeNum.TabIndex = 0;
            this.lbl_ConsumeNum.Text = "消费次数:";
            this.lbl_ConsumeNum.TextAlign = ContentAlignment.MiddleRight;
            this.pan_td21.Controls.Add(this.lbl_OutstMoneyValue);
            this.pan_td21.Dock = DockStyle.Left;
            this.pan_td21.Location = new Point(150, 0);
            this.pan_td21.Name = "pan_td21";
            this.pan_td21.Size = new Size(250, 0x19);
            this.pan_td21.TabIndex = 2;
            this.pan_td21.Paint += new PaintEventHandler(this.pan_td21_Paint);
            this.lbl_OutstMoneyValue.AutoSize = true;
            this.lbl_OutstMoneyValue.Location = new Point(5, 5);
            this.lbl_OutstMoneyValue.Name = "lbl_OutstMoneyValue";
            this.lbl_OutstMoneyValue.Size = new Size(0, 12);
            this.lbl_OutstMoneyValue.TabIndex = 0;
            this.pan_td20.Controls.Add(this.lbl_OutstMoney);
            this.pan_td20.Dock = DockStyle.Left;
            this.pan_td20.Location = new Point(0, 0);
            this.pan_td20.Name = "pan_td20";
            this.pan_td20.Size = new Size(150, 0x19);
            this.pan_td20.TabIndex = 3;
            this.pan_td20.Paint += new PaintEventHandler(this.pan_td20_Paint);
            this.lbl_OutstMoney.Location = new Point(0x3e, 5);
            this.lbl_OutstMoney.Name = "lbl_OutstMoney";
            this.lbl_OutstMoney.Size = new Size(0x54, 12);
            this.lbl_OutstMoney.TabIndex = 0;
            this.lbl_OutstMoney.Text = "未付总金额:";
            this.lbl_OutstMoney.TextAlign = ContentAlignment.MiddleRight;
            this.pan_Table6.Controls.Add(this.pan_td19);
            this.pan_Table6.Controls.Add(this.pan_td18);
            this.pan_Table6.Controls.Add(this.pan_td17);
            this.pan_Table6.Controls.Add(this.pan_td16);
            this.pan_Table6.Dock = DockStyle.Top;
            this.pan_Table6.Location = new Point(0, 0x87);
            this.pan_Table6.Name = "pan_Table6";
            this.pan_Table6.Size = new Size(800, 0x19);
            this.pan_Table6.TabIndex = 2;
            this.pan_td19.Controls.Add(this.lbl_PaidMoneyValue);
            this.pan_td19.Dock = DockStyle.Left;
            this.pan_td19.Location = new Point(550, 0);
            this.pan_td19.Name = "pan_td19";
            this.pan_td19.Size = new Size(250, 0x19);
            this.pan_td19.TabIndex = 0;
            this.pan_td19.Paint += new PaintEventHandler(this.pan_td19_Paint);
            this.lbl_PaidMoneyValue.AutoSize = true;
            this.lbl_PaidMoneyValue.Location = new Point(5, 5);
            this.lbl_PaidMoneyValue.Name = "lbl_PaidMoneyValue";
            this.lbl_PaidMoneyValue.Size = new Size(0, 12);
            this.lbl_PaidMoneyValue.TabIndex = 0;
            this.pan_td18.Controls.Add(this.lbl_PaidMoney);
            this.pan_td18.Dock = DockStyle.Left;
            this.pan_td18.Location = new Point(400, 0);
            this.pan_td18.Name = "pan_td18";
            this.pan_td18.Size = new Size(150, 0x19);
            this.pan_td18.TabIndex = 1;
            this.pan_td18.Paint += new PaintEventHandler(this.pan_td18_Paint);
            this.lbl_PaidMoney.Location = new Point(0x3e, 5);
            this.lbl_PaidMoney.Name = "lbl_PaidMoney";
            this.lbl_PaidMoney.Size = new Size(0x54, 12);
            this.lbl_PaidMoney.TabIndex = 0;
            this.lbl_PaidMoney.Text = "已付总金额:";
            this.lbl_PaidMoney.TextAlign = ContentAlignment.MiddleRight;
            this.pan_td17.Controls.Add(this.lbl_CumulativeMoneyValue);
            this.pan_td17.Dock = DockStyle.Left;
            this.pan_td17.Location = new Point(150, 0);
            this.pan_td17.Name = "pan_td17";
            this.pan_td17.Size = new Size(250, 0x19);
            this.pan_td17.TabIndex = 2;
            this.pan_td17.Paint += new PaintEventHandler(this.pan_td17_Paint);
            this.lbl_CumulativeMoneyValue.AutoSize = true;
            this.lbl_CumulativeMoneyValue.Location = new Point(5, 5);
            this.lbl_CumulativeMoneyValue.Name = "lbl_CumulativeMoneyValue";
            this.lbl_CumulativeMoneyValue.Size = new Size(0, 12);
            this.lbl_CumulativeMoneyValue.TabIndex = 0;
            this.pan_td16.Controls.Add(this.lbl_CumulativeMoney);
            this.pan_td16.Dock = DockStyle.Left;
            this.pan_td16.Location = new Point(0, 0);
            this.pan_td16.Name = "pan_td16";
            this.pan_td16.Size = new Size(150, 0x19);
            this.pan_td16.TabIndex = 3;
            this.pan_td16.Paint += new PaintEventHandler(this.pan_td16_Paint);
            this.lbl_CumulativeMoney.Location = new Point(0x3e, 5);
            this.lbl_CumulativeMoney.Name = "lbl_CumulativeMoney";
            this.lbl_CumulativeMoney.Size = new Size(0x54, 12);
            this.lbl_CumulativeMoney.TabIndex = 0;
            this.lbl_CumulativeMoney.Text = "累计总金额:";
            this.lbl_CumulativeMoney.TextAlign = ContentAlignment.MiddleRight;
            this.pan_Table4.Controls.Add(this.pan_td11);
            this.pan_Table4.Controls.Add(this.pan_td10);
            this.pan_Table4.Controls.Add(this.pan_td9);
            this.pan_Table4.Controls.Add(this.pan_td8);
            this.pan_Table4.Dock = DockStyle.Top;
            this.pan_Table4.Location = new Point(0, 110);
            this.pan_Table4.Name = "pan_Table4";
            this.pan_Table4.Size = new Size(800, 0x19);
            this.pan_Table4.TabIndex = 4;
            this.pan_td11.Controls.Add(this.lbl_ClearingTypeValue);
            this.pan_td11.Dock = DockStyle.Left;
            this.pan_td11.Location = new Point(550, 0);
            this.pan_td11.Name = "pan_td11";
            this.pan_td11.Size = new Size(250, 0x19);
            this.pan_td11.TabIndex = 0;
            this.pan_td11.Paint += new PaintEventHandler(this.pan_td11_Paint);
            this.lbl_ClearingTypeValue.AutoSize = true;
            this.lbl_ClearingTypeValue.Location = new Point(5, 6);
            this.lbl_ClearingTypeValue.Name = "lbl_ClearingTypeValue";
            this.lbl_ClearingTypeValue.Size = new Size(0, 12);
            this.lbl_ClearingTypeValue.TabIndex = 0;
            this.pan_td10.Controls.Add(this.lbl_ClearingType);
            this.pan_td10.Dock = DockStyle.Left;
            this.pan_td10.Location = new Point(400, 0);
            this.pan_td10.Name = "pan_td10";
            this.pan_td10.Size = new Size(150, 0x19);
            this.pan_td10.TabIndex = 1;
            this.pan_td10.Paint += new PaintEventHandler(this.pan_td10_Paint);
            this.lbl_ClearingType.Location = new Point(60, 6);
            this.lbl_ClearingType.Name = "lbl_ClearingType";
            this.lbl_ClearingType.Size = new Size(0x54, 12);
            this.lbl_ClearingType.TabIndex = 0;
            this.lbl_ClearingType.Text = "结算类型:";
            this.lbl_ClearingType.TextAlign = ContentAlignment.MiddleRight;
            this.pan_td9.Controls.Add(this.lbl_PayTypeValue);
            this.pan_td9.Dock = DockStyle.Left;
            this.pan_td9.Location = new Point(150, 0);
            this.pan_td9.Name = "pan_td9";
            this.pan_td9.Size = new Size(250, 0x19);
            this.pan_td9.TabIndex = 2;
            this.pan_td9.Paint += new PaintEventHandler(this.pan_td9_Paint);
            this.lbl_PayTypeValue.AutoSize = true;
            this.lbl_PayTypeValue.Location = new Point(5, 6);
            this.lbl_PayTypeValue.Name = "lbl_PayTypeValue";
            this.lbl_PayTypeValue.Size = new Size(0, 12);
            this.lbl_PayTypeValue.TabIndex = 0;
            this.pan_td8.Controls.Add(this.lbl_PayType);
            this.pan_td8.Dock = DockStyle.Left;
            this.pan_td8.Location = new Point(0, 0);
            this.pan_td8.Name = "pan_td8";
            this.pan_td8.Size = new Size(150, 0x19);
            this.pan_td8.TabIndex = 3;
            this.pan_td8.Paint += new PaintEventHandler(this.pan_td8_Paint);
            this.lbl_PayType.Location = new Point(0x3e, 5);
            this.lbl_PayType.Name = "lbl_PayType";
            this.lbl_PayType.Size = new Size(0x54, 12);
            this.lbl_PayType.TabIndex = 0;
            this.lbl_PayType.Text = "付款方式:";
            this.lbl_PayType.TextAlign = ContentAlignment.MiddleRight;
            this.panel_XuanTian.Controls.Add(this.lbl_XuanTian);
            this.panel_XuanTian.Dock = DockStyle.Top;
            this.panel_XuanTian.Location = new Point(0, 0x55);
            this.panel_XuanTian.Name = "panel_XuanTian";
            this.panel_XuanTian.Size = new Size(800, 0x19);
            this.panel_XuanTian.TabIndex = 5;
            this.panel_XuanTian.Paint += new PaintEventHandler(this.panel_XuanTian_Paint);
            this.lbl_XuanTian.AutoSize = true;
            this.lbl_XuanTian.Location = new Point(10, 6);
            this.lbl_XuanTian.Name = "lbl_XuanTian";
            this.lbl_XuanTian.Size = new Size(0x35, 12);
            this.lbl_XuanTian.TabIndex = 0;
            this.lbl_XuanTian.Text = "选填项目";
            this.panel_JianGe.Dock = DockStyle.Top;
            this.panel_JianGe.Location = new Point(0, 0x4b);
            this.panel_JianGe.Name = "panel_JianGe";
            this.panel_JianGe.Size = new Size(800, 10);
            this.panel_JianGe.TabIndex = 6;
            this.pan_Table3.Controls.Add(this.pan_td7);
            this.pan_Table3.Controls.Add(this.pan_td6);
            this.pan_Table3.Controls.Add(this.pan_td5);
            this.pan_Table3.Controls.Add(this.pan_td4);
            this.pan_Table3.Dock = DockStyle.Top;
            this.pan_Table3.Location = new Point(0, 50);
            this.pan_Table3.Name = "pan_Table3";
            this.pan_Table3.Size = new Size(800, 0x19);
            this.pan_Table3.TabIndex = 7;
            this.pan_td7.Controls.Add(this.lbl_TelValue);
            this.pan_td7.Dock = DockStyle.Left;
            this.pan_td7.Location = new Point(550, 0);
            this.pan_td7.Name = "pan_td7";
            this.pan_td7.Size = new Size(250, 0x19);
            this.pan_td7.TabIndex = 0;
            this.pan_td7.Paint += new PaintEventHandler(this.pan_td7_Paint);
            this.lbl_TelValue.AutoSize = true;
            this.lbl_TelValue.Location = new Point(5, 5);
            this.lbl_TelValue.Name = "lbl_TelValue";
            this.lbl_TelValue.Size = new Size(0, 12);
            this.lbl_TelValue.TabIndex = 0;
            this.pan_td6.Controls.Add(this.lbl_Tel);
            this.pan_td6.Dock = DockStyle.Left;
            this.pan_td6.Location = new Point(400, 0);
            this.pan_td6.Name = "pan_td6";
            this.pan_td6.Size = new Size(150, 0x19);
            this.pan_td6.TabIndex = 1;
            this.pan_td6.Paint += new PaintEventHandler(this.pan_td6_Paint);
            this.lbl_Tel.Location = new Point(0x3e, 5);
            this.lbl_Tel.Name = "lbl_Tel";
            this.lbl_Tel.Size = new Size(0x54, 12);
            this.lbl_Tel.TabIndex = 0;
            this.lbl_Tel.Text = "联系电话:";
            this.lbl_Tel.TextAlign = ContentAlignment.MiddleRight;
            this.pan_td5.Controls.Add(this.lbl_GuestNameValue);
            this.pan_td5.Dock = DockStyle.Left;
            this.pan_td5.Location = new Point(150, 0);
            this.pan_td5.Name = "pan_td5";
            this.pan_td5.Size = new Size(250, 0x19);
            this.pan_td5.TabIndex = 2;
            this.pan_td5.Paint += new PaintEventHandler(this.pan_td5_Paint);
            this.lbl_GuestNameValue.AutoSize = true;
            this.lbl_GuestNameValue.Location = new Point(6, 6);
            this.lbl_GuestNameValue.Name = "lbl_GuestNameValue";
            this.lbl_GuestNameValue.Size = new Size(0, 12);
            this.lbl_GuestNameValue.TabIndex = 0;
            this.pan_td4.Controls.Add(this.lbl_GuestName);
            this.pan_td4.Dock = DockStyle.Left;
            this.pan_td4.Location = new Point(0, 0);
            this.pan_td4.Name = "pan_td4";
            this.pan_td4.Size = new Size(150, 0x19);
            this.pan_td4.TabIndex = 3;
            this.pan_td4.Paint += new PaintEventHandler(this.pan_td4_Paint);
            this.lbl_GuestName.Location = new Point(0x3e, 5);
            this.lbl_GuestName.Name = "lbl_GuestName";
            this.lbl_GuestName.Size = new Size(0x54, 12);
            this.lbl_GuestName.TabIndex = 0;
            this.lbl_GuestName.Text = "名称:";
            this.lbl_GuestName.TextAlign = ContentAlignment.MiddleRight;
            this.pan_Table2.Controls.Add(this.pan_td3);
            this.pan_Table2.Controls.Add(this.pan_td2);
            this.pan_Table2.Controls.Add(this.pan_td1);
            this.pan_Table2.Controls.Add(this.pan_td0);
            this.pan_Table2.Dock = DockStyle.Top;
            this.pan_Table2.Location = new Point(0, 0x19);
            this.pan_Table2.Name = "pan_Table2";
            this.pan_Table2.Size = new Size(800, 0x19);
            this.pan_Table2.TabIndex = 8;
            this.pan_td3.Controls.Add(this.lbl_GuestTypeIdValue);
            this.pan_td3.Dock = DockStyle.Left;
            this.pan_td3.Location = new Point(550, 0);
            this.pan_td3.Name = "pan_td3";
            this.pan_td3.Size = new Size(250, 0x19);
            this.pan_td3.TabIndex = 0;
            this.pan_td3.Paint += new PaintEventHandler(this.pan_td3_Paint);
            this.lbl_GuestTypeIdValue.AutoSize = true;
            this.lbl_GuestTypeIdValue.Location = new Point(5, 6);
            this.lbl_GuestTypeIdValue.Name = "lbl_GuestTypeIdValue";
            this.lbl_GuestTypeIdValue.Size = new Size(0, 12);
            this.lbl_GuestTypeIdValue.TabIndex = 0;
            this.pan_td2.Controls.Add(this.lbl_GuestTypeId);
            this.pan_td2.Dock = DockStyle.Left;
            this.pan_td2.Location = new Point(400, 0);
            this.pan_td2.Name = "pan_td2";
            this.pan_td2.Size = new Size(150, 0x19);
            this.pan_td2.TabIndex = 1;
            this.pan_td2.Paint += new PaintEventHandler(this.pan_td2_Paint);
            this.lbl_GuestTypeId.Location = new Point(0x3e, 5);
            this.lbl_GuestTypeId.Name = "lbl_GuestTypeId";
            this.lbl_GuestTypeId.Size = new Size(0x54, 12);
            this.lbl_GuestTypeId.TabIndex = 0;
            this.lbl_GuestTypeId.Text = "客户折扣类型:";
            this.lbl_GuestTypeId.TextAlign = ContentAlignment.MiddleRight;
            this.pan_td1.Controls.Add(this.lbl_GuestTypesValue);
            this.pan_td1.Dock = DockStyle.Left;
            this.pan_td1.Location = new Point(150, 0);
            this.pan_td1.Name = "pan_td1";
            this.pan_td1.Size = new Size(250, 0x19);
            this.pan_td1.TabIndex = 2;
            this.pan_td1.Paint += new PaintEventHandler(this.pan_td1_Paint);
            this.lbl_GuestTypesValue.AutoSize = true;
            this.lbl_GuestTypesValue.Location = new Point(5, 5);
            this.lbl_GuestTypesValue.Name = "lbl_GuestTypesValue";
            this.lbl_GuestTypesValue.Size = new Size(0, 12);
            this.lbl_GuestTypesValue.TabIndex = 0;
            this.pan_td0.Controls.Add(this.lbl_GuestTypes);
            this.pan_td0.Dock = DockStyle.Left;
            this.pan_td0.Location = new Point(0, 0);
            this.pan_td0.Name = "pan_td0";
            this.pan_td0.Size = new Size(150, 0x19);
            this.pan_td0.TabIndex = 3;
            this.pan_td0.Paint += new PaintEventHandler(this.pan_td0_Paint);
            this.lbl_GuestTypes.Location = new Point(0x3e, 5);
            this.lbl_GuestTypes.Name = "lbl_GuestTypes";
            this.lbl_GuestTypes.Size = new Size(0x54, 12);
            this.lbl_GuestTypes.TabIndex = 0;
            this.lbl_GuestTypes.Text = "客户类型:";
            this.lbl_GuestTypes.TextAlign = ContentAlignment.MiddleRight;
            this.panel_BiTian.Controls.Add(this.lbl_BiTian);
            this.panel_BiTian.Dock = DockStyle.Top;
            this.panel_BiTian.Location = new Point(0, 0);
            this.panel_BiTian.Name = "panel_BiTian";
            this.panel_BiTian.Size = new Size(800, 0x19);
            this.panel_BiTian.TabIndex = 9;
            this.panel_BiTian.Paint += new PaintEventHandler(this.panel_BiTian_Paint);
            this.lbl_BiTian.AutoSize = true;
            this.lbl_BiTian.Location = new Point(10, 6);
            this.lbl_BiTian.Name = "lbl_BiTian";
            this.lbl_BiTian.Size = new Size(0x35, 12);
            this.lbl_BiTian.TabIndex = 0;
            this.lbl_BiTian.Text = "必填项目";
            this.panel_Button.Controls.Add(this.btn_Close);
            this.panel_Button.Dock = DockStyle.Bottom;
            this.panel_Button.Location = new Point(0, 0x100);
            this.panel_Button.Name = "panel_Button";
            this.panel_Button.Size = new Size(800, 0x2b);
            this.panel_Button.TabIndex = 10;
            this.panel_Button.Paint += new PaintEventHandler(this.panel_Button_Paint);
            this.btn_Close.Location = new Point(0x16b, 10);
            this.btn_Close.Name = "btn_Close";
            this.btn_Close.Size = new Size(0x4b, 0x17);
            this.btn_Close.TabIndex = 0;
            this.btn_Close.Text = "关 闭";
            this.btn_Close.UseVisualStyleBackColor = true;
            this.btn_Close.Click += new EventHandler(this.btn_Close_Click);
            this.panel9.Dock = DockStyle.Bottom;
            this.panel9.Location = new Point(0, 0x12b);
            this.panel9.Name = "panel9";
            this.panel9.Size = new Size(800, 5);
            this.panel9.TabIndex = 3;
            this.pan_Rights.Dock = DockStyle.Right;
            this.pan_Rights.Location = new Point(810, 10);
            this.pan_Rights.Name = "pan_Rights";
            this.pan_Rights.Size = new Size(10, 0x130);
            this.pan_Rights.TabIndex = 3;
            this.pan_Lefts.Dock = DockStyle.Left;
            this.pan_Lefts.Location = new Point(0, 10);
            this.pan_Lefts.Name = "pan_Lefts";
            this.pan_Lefts.Size = new Size(10, 0x130);
            this.pan_Lefts.TabIndex = 2;
            this.pan_Bottoms.Dock = DockStyle.Bottom;
            this.pan_Bottoms.Location = new Point(0, 0x13a);
            this.pan_Bottoms.Name = "pan_Bottoms";
            this.pan_Bottoms.Size = new Size(820, 10);
            this.pan_Bottoms.TabIndex = 1;
            this.pane_TopT.Dock = DockStyle.Top;
            this.pane_TopT.Location = new Point(0, 0);
            this.pane_TopT.Name = "pane_TopT";
            this.pane_TopT.Size = new Size(820, 10);
            this.pane_TopT.TabIndex = 0;
            this.pan_DockBottom.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockBottom.Dock = DockStyle.Bottom;
            this.pan_DockBottom.Location = new Point(1, 0x144);
            this.pan_DockBottom.Name = "pan_DockBottom";
            this.pan_DockBottom.Size = new Size(820, 1);
            this.pan_DockBottom.TabIndex = 2;
            this.pan_DockRight.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockRight.Dock = DockStyle.Right;
            this.pan_DockRight.Location = new Point(0x335, 0);
            this.pan_DockRight.Name = "pan_DockRight";
            this.pan_DockRight.Size = new Size(1, 0x145);
            this.pan_DockRight.TabIndex = 1;
            this.pan_Top.Controls.Add(this.pan_ZhongJian);
            this.pan_Top.Controls.Add(this.pan_TopRight);
            this.pan_Top.Controls.Add(this.pan_TopLeft);
            this.pan_Top.Dock = DockStyle.Top;
            this.pan_Top.Location = new Point(0, 0);
            this.pan_Top.Name = "pan_Top";
            this.pan_Top.Size = new Size(0x336, 0x20);
            this.pan_Top.TabIndex = 4;
            this.pan_ZhongJian.BackgroundImage = Resources.uc_title_2;
            this.pan_ZhongJian.Controls.Add(this.lblTitle);
            this.pan_ZhongJian.Dock = DockStyle.Fill;
            this.pan_ZhongJian.Location = new Point(0x1f, 0);
            this.pan_ZhongJian.Name = "pan_ZhongJian";
            this.pan_ZhongJian.Size = new Size(0x312, 0x20);
            this.pan_ZhongJian.TabIndex = 2;
            this.pan_ZhongJian.MouseDown += new MouseEventHandler(this.pan_ZhongJian_MouseDown);
            this.lblTitle.AutoSize = true;
            this.lblTitle.BackColor = Color.FromArgb(0, 0, 15, 0xff);
            this.lblTitle.Font = new Font("宋体", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0x86);
            this.lblTitle.ForeColor = Color.FromArgb(0x3b, 0x56, 20);
            this.lblTitle.Location = new Point(6, 8);
            this.lblTitle.Name = "lblTitle";
            this.lblTitle.Size = new Size(0x5b, 13);
            this.lblTitle.TabIndex = 0;
            this.lblTitle.Text = "浏览客户信息";
            this.pan_TopRight.BackgroundImage = Resources.uc_title_1;
            this.pan_TopRight.Dock = DockStyle.Right;
            this.pan_TopRight.Location = new Point(0x331, 0);
            this.pan_TopRight.Name = "pan_TopRight";
            this.pan_TopRight.Size = new Size(5, 0x20);
            this.pan_TopRight.TabIndex = 1;
            this.pan_TopLeft.BackgroundImage = Resources.uc_title;
            this.pan_TopLeft.Dock = DockStyle.Left;
            this.pan_TopLeft.Location = new Point(0, 0);
            this.pan_TopLeft.Name = "pan_TopLeft";
            this.pan_TopLeft.Size = new Size(0x1f, 0x20);
            this.pan_TopLeft.TabIndex = 0;
            this.pan_TopLeft.MouseDown += new MouseEventHandler(this.pan_TopLeft_MouseDown);
            this.btn_Save.Location = new Point(0, 0);
            this.btn_Save.Name = "btn_Save";
            this.btn_Save.Size = new Size(0x4b, 0x17);
            this.btn_Save.TabIndex = 0;
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x336, 0x165);
            base.Controls.Add(this.pan_Dock);
            base.Controls.Add(this.pan_Top);
            base.FormBorderStyle = FormBorderStyle.None;
            base.MaximizeBox = false;
            base.MinimizeBox = false;
            base.Name = "FrmGuestVeiw";
            base.ShowInTaskbar = false;
            this.pan_Dock.ResumeLayout(false);
            this.pan_AllPanel.ResumeLayout(false);
            this.pan_AllPlanes.ResumeLayout(false);
            this.panel6.ResumeLayout(false);
            this.panel10.ResumeLayout(false);
            this.panel10.PerformLayout();
            this.panel11.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.panel4.ResumeLayout(false);
            this.panel4.PerformLayout();
            this.panel5.ResumeLayout(false);
            this.pan_Table7.ResumeLayout(false);
            this.pan_td23.ResumeLayout(false);
            this.pan_td23.PerformLayout();
            this.pan_td22.ResumeLayout(false);
            this.pan_td21.ResumeLayout(false);
            this.pan_td21.PerformLayout();
            this.pan_td20.ResumeLayout(false);
            this.pan_Table6.ResumeLayout(false);
            this.pan_td19.ResumeLayout(false);
            this.pan_td19.PerformLayout();
            this.pan_td18.ResumeLayout(false);
            this.pan_td17.ResumeLayout(false);
            this.pan_td17.PerformLayout();
            this.pan_td16.ResumeLayout(false);
            this.pan_Table4.ResumeLayout(false);
            this.pan_td11.ResumeLayout(false);
            this.pan_td11.PerformLayout();
            this.pan_td10.ResumeLayout(false);
            this.pan_td9.ResumeLayout(false);
            this.pan_td9.PerformLayout();
            this.pan_td8.ResumeLayout(false);
            this.panel_XuanTian.ResumeLayout(false);
            this.panel_XuanTian.PerformLayout();
            this.pan_Table3.ResumeLayout(false);
            this.pan_td7.ResumeLayout(false);
            this.pan_td7.PerformLayout();
            this.pan_td6.ResumeLayout(false);
            this.pan_td5.ResumeLayout(false);
            this.pan_td5.PerformLayout();
            this.pan_td4.ResumeLayout(false);
            this.pan_Table2.ResumeLayout(false);
            this.pan_td3.ResumeLayout(false);
            this.pan_td3.PerformLayout();
            this.pan_td2.ResumeLayout(false);
            this.pan_td1.ResumeLayout(false);
            this.pan_td1.PerformLayout();
            this.pan_td0.ResumeLayout(false);
            this.panel_BiTian.ResumeLayout(false);
            this.panel_BiTian.PerformLayout();
            this.panel_Button.ResumeLayout(false);
            this.pan_Top.ResumeLayout(false);
            this.pan_ZhongJian.ResumeLayout(false);
            this.pan_ZhongJian.PerformLayout();
            base.ResumeLayout(false);
        }

        private void pan_td0_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td0, Color.FromArgb(0xca, 0xc9, 0xce), 1, 0, 1, 1);
        }

        private void pan_td1_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td1, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td10_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td10, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td11_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td11, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td16_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td16, Color.FromArgb(0xca, 0xc9, 0xce), 1, 0, 1, 1);
        }

        private void pan_td17_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td17, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td18_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td18, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td19_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td19, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td2_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td2, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td20_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td20, Color.FromArgb(0xca, 0xc9, 0xce), 1, 0, 1, 1);
        }

        private void pan_td21_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td21, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td22_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td22, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td23_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td23, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td3_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td3, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td4_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td4, Color.FromArgb(0xca, 0xc9, 0xce), 1, 0, 1, 1);
        }

        private void pan_td5_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td5, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td6_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td6, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td7_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td7, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td8_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td8, Color.FromArgb(0xca, 0xc9, 0xce), 1, 0, 1, 1);
        }

        private void pan_td9_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td9, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_TopLeft_MouseDown(object sender, MouseEventArgs e)
        {
            ReleaseCapture();
            SendMessage(base.Handle, 0x112, 0xf012, 0);
        }

        private void pan_ZhongJian_MouseDown(object sender, MouseEventArgs e)
        {
            ReleaseCapture();
            SendMessage(base.Handle, 0x112, 0xf012, 0);
        }

        private void panel_BiTian_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel_BiTian, Color.FromArgb(0xca, 0xc9, 0xce), 1, 1, 1, 1);
        }

        private void panel_Button_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel_Button, Color.FromArgb(0xca, 0xc9, 0xce), 1, 1, 1, 1);
        }

        private void Panel_ResetPaint(PaintEventArgs e, Panel panel, Color color, int leftBoder, int topBoder, int rightBoder, int bottomBoder)
        {
            ControlPaint.DrawBorder(e.Graphics, panel.ClientRectangle, color, leftBoder, ButtonBorderStyle.Solid, color, topBoder, ButtonBorderStyle.Solid, color, rightBoder, ButtonBorderStyle.Solid, color, bottomBoder, ButtonBorderStyle.Solid);
        }

        private void panel_XuanTian_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel_XuanTian, Color.FromArgb(0xca, 0xc9, 0xce), 1, 1, 1, 1);
        }

        private void panel10_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel10, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void panel11_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel11, Color.FromArgb(0xca, 0xc9, 0xce), 1, 0, 1, 1);
        }

        private void panel4_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel4, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void panel5_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel5, Color.FromArgb(0xca, 0xc9, 0xce), 1, 0, 1, 1);
        }

        [DllImport("user32.dll")]
        public static extern bool ReleaseCapture();
        [DllImport("user32.dll")]
        public static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
    }
}

